add_symbols_versioning
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Sat, 23 Dec 2017 22:00:21 +0000 (22:00 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Sat, 23 Dec 2017 22:00:21 +0000 (22:00 +0000)
commit542aadb20c8db85c9a320f5a86baed6560b22aef
tree393a0ab46e14d2e11fb27e6d9f7f6204fdaf9d62
parent445ca5b76f5a982c6e315469792d814419c5095f
add_symbols_versioning

This patch adds a very simple linker script to version the lib's symbols
and thus trying to avoid crashes if an application loads two different
LLVM versions (as long as they do not share data between them).

Note that we deliberately *don't* make LLVM_3.8 depend on LLVM_3.8:
they're incompatible and the whole point of this patch is
to tell the linker that.

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Author: Lisandro Damían Nicanor Pérez Meyer <lisandro@debian.org>
Bug-Debian: https://bugs.debian.org/848368

Gbp-Pq: Name add_symbols_versioning.patch
cmake/modules/AddLLVM.cmake
tools/llvm-shlib/CMakeLists.txt
tools/llvm-shlib/simple_version_script.map [new file with mode: 0644]